package org.example.dao;

import org.example.po.TestPo;
import org.junit.jupiter.api.Test;
import org.rcy.framework.cache.redis.CommonCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/9/29 11:45
 */

@SpringBootTest
public class MyTestdao {

	@Autowired
	private TestDao testDao;
//	@Autowired
//	private TestJpa testJpa;
	@Autowired
	CommonCache commonCache;


	@Test
	public void testQ(){
		TestPo testPo = new TestPo();
//		System.out.println(testJpa.findById(1575738218118823936L));
		System.out.println(testDao.get(1575738218118823936L));
	}

	@Test
	public void testCache(){
	commonCache.cache("demo","testkey1","backarrow",30);
	}
}
